import { StateZoneData } from 'types';

export const zoneDetailMock = {
  _isFinestGranularity: true,
  capacity: {
    'battery storage': 10,
    biomass: 700,
    coal: 0,
    gas: 4461,
    geothermal: 0,
    hydro: 4636,
    'hydro storage': 3585,
    nuclear: 0,
    oil: 0,
    solar: 2141,
    unknown: 28,
    wind: 5374,
  },
  co2intensity: 213.12,
  co2intensityProduction: 235.62,
  dischargeCo2Intensities: {
    battery: 155.11,
    hydro: 155.11,
  },
  dischargeCo2IntensitySources: {
    battery: 'Electricity Maps, 2021 average',
    hydro: 'Electricity Maps, 2021 average',
  },
  exchange: {
    ES: 303,
  },
  exchangeCapacities: {
    ES: [-4545, 5085],
  },
  exchangeCo2Intensities: {
    ES: 265.97,
  },
  fossilFuelRatio: 0.3029,
  fossilFuelRatioProduction: 0.2956,
  isValid: true,
  maxCapacity: 5374,
  maxDischarge: 1970,
  maxExport: 0,
  maxExportCapacity: 4545,
  maxImport: 303,
  maxImportCapacity: 5085,
  maxProduction: 1861,
  maxStorage: 0,
  maxStorageCapacity: 3585,
  price: {
    currency: 'EUR',
    value: 149.23,
  },
  production: {
    biomass: 343,
    coal: 0,
    gas: 1861,
    geothermal: null,
    hydro: 1084,
    nuclear: null,
    oil: null,
    solar: 60,
    unknown: 12,
    wind: 1007,
  },
  productionCo2Intensities: {
    biomass: 230,
    coal: 1099.976_527,
    gas: 492.109_361,
    geothermal: 38,
    hydro: 10.7,
    nuclear: 5.13,
    oil: 1124.903_938,
    solar: 25.6,
    unknown: 700,
    wind: 12.62,
  },
  productionCo2IntensitySources: {
    biomass: 'BEIS 2021; IPCC 2014',
    coal: 'EU-ETS, ENTSO-E 2021; Oberschelp, Christopher, et al. "Global emission hotspots of coal power generation."',
    gas: 'EU-ETS, ENTSO-E 2021; IPCC 2014',
    geothermal: 'IPCC 2014',
    hydro: 'UNECE 2022',
    nuclear: 'UNECE 2022',
    oil: 'EU-ETS, ENTSO-E 2021; IPCC 2014',
    solar: 'INCER ACV',
    unknown: 'assumes thermal (coal, gas, oil or biomass)',
    wind: 'UNECE 2022, WindEurope "Wind energy in Europe, 2021 Statistics and the outlook for 2022-2026" Wind Europe Proceedings (2021)',
  },
  renewableRatio: 0.6874,
  renewableRatioProduction: 0.7044,
  source: ['entsoe.eu'],
  stateDatetime: '2023-09-05T18:00:00Z',
  storage: {
    battery: 7,
    hydro: -1970,
  },
  totalCo2Consumption: 1_415_116_000.8,
  totalCo2Discharge: 305_566_000.7,
  totalCo2Export: null,
  totalCo2Import: 80_588_000.91,
  totalCo2NetExchange: null,
  totalCo2Production: 1_028_952_000.54,
  totalCo2Storage: null,
  totalConsumption: 6640,
  totalDischarge: 1970,
  totalExport: 0,
  totalImport: 303,
  totalProduction: 4367,
  totalStorage: 0,
  zoneKey: 'PT',
};

export const zoneStateMock: StateZoneData = {
  c: {
    ci: 176.01,
    fr: 0.1664,
    rr: 0.683,
  },
  p: {
    ci: 342.58,
    fr: 0.345,
    rr: 0.655,
  },
  ep: 0,
  em: null,
};

export const priceData2 = {
  entryCount: 24,
  priceData: {
    '2024-09-01 09:00:00+00:00': 0,
    '2024-09-01 10:00:00+00:00': 1,
    '2024-09-01 11:00:00+00:00': 2,
    '2024-09-01 12:00:00+00:00': 3,
    '2024-09-01 13:00:00+00:00': 4,
    '2024-09-01 14:00:00+00:00': 5,
    '2024-09-01 15:00:00+00:00': 6,
    '2024-09-01 16:00:00+00:00': 7,
    '2024-09-01 17:00:00+00:00': 8,
    '2024-09-01 18:00:00+00:00': 9,
    '2024-09-01 19:00:00+00:00': 10,
    '2024-09-01 20:00:00+00:00': 11,
    '2024-09-01 21:00:00+00:00': 12,
    '2024-09-01 22:00:00+00:00': 13,
    '2024-09-01 23:00:00+00:00': 14,
    '2024-09-02 00:00:00+00:00': 15,
    '2024-09-02 01:00:00+00:00': 16,
    '2024-09-02 02:00:00+00:00': 17,
    '2024-09-02 03:00:00+00:00': 18,
    '2024-09-02 04:00:00+00:00': 19,
    '2024-09-02 05:00:00+00:00': 20,
    '2024-09-02 06:00:00+00:00': 21,
    '2024-09-02 07:00:00+00:00': 22,
    '2024-09-02 08:00:00+00:00': 23,
    '2024-09-02 09:00:00+00:00': 24,
    '2024-09-02 10:00:00+00:00': 25,
    '2024-09-02 11:00:00+00:00': 26,
    '2024-09-02 12:00:00+00:00': 27,
    '2024-09-02 13:00:00+00:00': 28,
    '2024-09-02 14:00:00+00:00': 29,
    '2024-09-02 15:00:00+00:00': 30,
  },
  currency: 'EUR',
  source: 'nordpool.com',
  zoneKey: 'DE',
};

export const priceData = {
  entryCount: 24,
  priceData: {
    '2024-09-01 22:00:00+00:00': 25,
    '2024-09-01 23:00:00+00:00': 15,
    '2024-09-02 00:00:00+00:00': 12,
    '2024-09-02 01:00:00+00:00': 40,
    '2024-09-02 02:00:00+00:00': 21,
    '2024-09-02 03:00:00+00:00': 16,
    '2024-09-02 04:00:00+00:00': 19,
    '2024-09-02 05:00:00+00:00': 24,
    '2024-09-02 06:00:00+00:00': 27,
    '2024-09-02 07:00:00+00:00': 22,
    '2024-09-02 08:00:00+00:00': 13,
    '2024-09-02 09:00:00+00:00': 29,
    '2024-09-02 10:00:00+00:00': 18,
    '2024-09-02 11:00:00+00:00': 20,
    '2024-09-02 12:00:00+00:00': 26,
    '2024-09-02 13:00:00+00:00': 14,
    '2024-09-02 14:00:00+00:00': 23,
    '2024-09-02 15:00:00+00:00': 29,
    '2024-09-02 16:00:00+00:00': 17,
    '2024-09-02 17:00:00+00:00': 11,
    '2024-09-02 18:00:00+00:00': 22,
    '2024-09-02 19:00:00+00:00': 13,
    '2024-09-02 20:00:00+00:00': 28,
    '2024-09-02 21:00:00+00:00': 19,
    '2024-09-02 22:00:00+00:00': 29,
    '2024-09-02 23:00:00+00:00': 16,
    '2024-09-03 00:00:00+00:00': 24,
    '2024-09-03 01:00:00+00:00': 15,
  },
  currency: 'EUR',
  source: 'nordpool.com',
  zoneKey: 'DE',
};

export const halfHourPriceData = {
  entryCount: 28,
  priceData: {
    '2024-09-01 22:00:00+00:00': 25,
    '2024-09-01 22:30:00+00:00': 15,
    '2024-09-01 23:00:00+00:00': 12,
    '2024-09-01 23:30:00+00:00': -20,
    '2024-09-02 00:00:00+00:00': 0,
    '2024-09-02 00:30:00+00:00': -5,
    '2024-09-02 01:00:00+00:00': 19,
    '2024-09-02 01:30:00+00:00': 24,
    '2024-09-02 02:00:00+00:00': 27,
    '2024-09-02 02:30:00+00:00': 22,
    '2024-09-02 03:00:00+00:00': -10,
    '2024-09-02 03:30:00+00:00': 29,
    '2024-09-02 04:00:00+00:00': 18,
    '2024-09-02 04:30:00+00:00': 20,
    '2024-09-02 05:00:00+00:00': 26,
    '2024-09-02 05:30:00+00:00': -3,
    '2024-09-02 06:00:00+00:00': 23,
    '2024-09-02 06:30:00+00:00': 40,
    '2024-09-02 07:00:00+00:00': 17,
    '2024-09-02 07:30:00+00:00': 11,
    '2024-09-02 08:00:00+00:00': 22,
    '2024-09-02 08:30:00+00:00': 13,
    '2024-09-02 09:00:00+00:00': 28,
    '2024-09-02 09:30:00+00:00': 19,
    '2024-09-02 10:00:00+00:00': 29,
    '2024-09-02 10:30:00+00:00': 16,
    '2024-09-02 11:00:00+00:00': 24,
    '2024-09-02 11:30:00+00:00': 15,
    '2024-09-02 12:00:00+00:00': 12,
    '2024-09-02 12:30:00+00:00': 28,
    '2024-09-02 13:00:00+00:00': 21,
    '2024-09-02 13:30:00+00:00': -5,
    '2024-09-02 14:00:00+00:00': 19,
    '2024-09-02 14:30:00+00:00': 24,
    '2024-09-02 15:00:00+00:00': 27,
    '2024-09-02 15:30:00+00:00': 22,
    '2024-09-02 16:00:00+00:00': -10,
    '2024-09-02 16:30:00+00:00': 29,
    '2024-09-02 17:00:00+00:00': 18,
    '2024-09-02 17:30:00+00:00': 20,
    '2024-09-02 18:00:00+00:00': 26,
    '2024-09-02 18:30:00+00:00': -3,
    '2024-09-02 19:00:00+00:00': 23,
    '2024-09-02 19:30:00+00:00': 30,
    '2024-09-02 20:00:00+00:00': 17,
    '2024-09-02 20:30:00+00:00': 11,
    '2024-09-02 21:00:00+00:00': 22,
    '2024-09-02 21:30:00+00:00': 13,
    '2024-09-02 22:00:00+00:00': 28,
    '2024-09-02 22:30:00+00:00': 19,
    '2024-09-02 23:00:00+00:00': 29,
    '2024-09-02 23:30:00+00:00': 16,
    '2024-09-03 00:00:00+00:00': 24,
    '2024-09-03 00:30:00+00:00': 15,
    '2024-09-03 01:00:00+00:00': 12,
    '2024-09-03 01:30:00+00:00': 28,
    '2024-09-03 02:00:00+00:00': 21,
    '2024-09-03 02:30:00+00:00': -5,
    '2024-09-03 03:00:00+00:00': 19,
    '2024-09-03 03:30:00+00:00': 24,
    '2024-09-03 04:00:00+00:00': 27,
    '2024-09-03 04:30:00+00:00': 22,
    '2024-09-03 05:00:00+00:00': -40,
    '2024-09-03 05:30:00+00:00': 29,
    '2024-09-03 06:00:00+00:00': 18,
    '2024-09-03 06:30:00+00:00': 20,
    '2024-09-03 07:00:00+00:00': 26,
    '2024-09-03 07:30:00+00:00': -3,
    '2024-09-03 08:00:00+00:00': 23,
    '2024-09-03 08:30:00+00:00': 30,
    '2024-09-03 09:00:00+00:00': 17,
    '2024-09-03 09:30:00+00:00': 11,
    '2024-09-03 10:00:00+00:00': 22,
    '2024-09-03 10:30:00+00:00': 13,
    '2024-09-03 11:00:00+00:00': 28,
    '2024-09-03 11:30:00+00:00': 19,
    '2024-09-03 12:00:00+00:00': 29,
    '2024-09-03 12:30:00+00:00': 16,
    '2024-09-03 13:00:00+00:00': 24,
    '2024-09-03 13:30:00+00:00': 15,
  },
  currency: 'GBP',
  source: 'nordpool.com',
  zoneKey: 'GB',
};
